import axios from "axios";

const client = axios.create({});

client.interceptors.request.use(
  (request) => request,
  (error) => new Promise(error)
);

client.interceptors.response.use(
  (response) => {
    return response.data;
  },
  (error) => new Promise(error)
);

export default client;
